package com.hellohoper.assembly.common.utils.serialize;


import com.hellohoper.assembly.common.utils.SerializationException;

/**
 * Created by hk on 6/22/16.
 */
public interface Serializer {

    byte[] serializeByte(Object t) throws SerializationException;

    Object deserializeByte(byte[] bytes) throws SerializationException;

    String serialize(Object t) throws SerializationException;

    Object deserialize(String content) throws SerializationException;

}
